﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;
using ifunction.Fiddler.Model;

namespace ifunction.Fiddler
{
    /// <summary>
    /// Interface IFiddlerSimulatorService
    /// </summary>
    [ServiceContract]
    public interface IFiddlerSimulatorService
    {
        /// <summary>
        /// Gets the packages.
        /// </summary>
        /// <returns>List{RequestPackage}.</returns>
        List<RequestPackage> GetPackages();

        /// <summary>
        /// Adds the or update package.
        /// </summary>
        /// <param name="package">The package.</param>
        void AddOrUpdatePackage(RequestPackage package);

        /// <summary>
        /// Removes the package.
        /// </summary>
        /// <param name="key">The key.</param>
        void RemovePackage(Guid key);
    }
}
